<template>
    <div>
        <AppTopnav/>
        <AppHeader/>
        <AppHeaderSticky/>
        <main>
            <!-- 二级路由 -->
            <router-view/>
        </main>
        <AppFooter/>
    </div>
</template>

<script>
    import AppTopnav from "@/components/app-topnav";
    import AppHeader from "@/components/app-header";
    import AppFooter from "@/components/app-footer";
    import AppHeaderSticky from "@/components/app-header-sticky";

    export default {
        name: "Layout",
        components: {AppHeaderSticky, AppFooter, AppHeader, AppTopnav},
        created() {
            //获取分类数据
           this.$store.dispatch('category/getList')
        },
        methods: {

        }
    }
</script>

<style scoped lang="less">

</style>